<div class="table-body">
    <table id="dataTable" lay-filter="dataTable" ></table>
</div>

<script>
    layui.use(['form',  'table'], function () {
        var tableIn = layui.table.render({
            elem: '#dataTable',
            height: 'full-99',
            cellMinWidth: '80',
            url: "{:url('index')}",
            toolbar: '#toolbar',
            method:'POST',
            cols: [[
                { type: 'numbers'},
                { field: 'username', title: 'username',align:"left",width:200},
                { field: 'card_num', title: 'card_num',align:"left",width:200},
                { field: 'amount_auth', title: 'amount_auth',align:"right",width:200},
                { field: 'amount_post', title: 'amount_post',align:"right",width:200},
                // { field: 'amount_auth', title: 'amount_auth', align:"left",width:200,
                //     templet: function (d) {
                //         var shop = d.shopping;
                //         var shop_array = shop.split(',');
                //
                //         return shop_array;
                //     }
                // },
                { field: 'utime', align: 'center', title: '结算时间',width:200}
            ]],
            page: true,
            limit: 1000,
            limits: [1000],
        });
    });
</script>